package com.mall.manager.labellibrary.controller;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

import com.mall.manager.labellibrary.service.ContentformLabelLibraryService;

/**
 * @功能 			: 	处理标签库表的增、删、改、查业务处理
 * @作者 			: 	WANGQI
 * @时间 			: 	2016.07.22
 * @所属公司 		: 	艾的教育>技术部
 * @copyright 	: 	Copyright www.ide365.com. All rights reserved
 */
@Controller
public class ContentformLabelLibraryController {
	Logger logger = LoggerFactory.getLogger(ContentformLabelLibraryController.class);
	@Resource ContentformLabelLibraryService contentformLabelLibraryService;
	
	/**
	 * @功能 		: 	添加标签库表业务处理
	 * @param 	: 	paraMap
	 * @return 	:
	 */
//    @RequestMapping(value = "/")
//    public String contentform_labellibrary_add(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {   
//    	Map<String, Object> paraMap = WebUtils.getParametersStartingWith(request, "");
//    	int addNum=contentformLabelLibraryService.contentform_labellibrary_add(paraMap);
//    	if(addNum>0){
//    		modelMap.addAttribute("info", "添加标签成功！");
//    		return "redirect:/";
//    	}
//    	modelMap.addAttribute("info", "添加标签失败！");
//		return "redirect:/";
//    }
    
    /**
	 * @功能 		: 	删除标签库表业务处理
	 * @param 	: 	paraMap
	 * @return 	:
	 */
//    @RequestMapping(value = "/")    
//    public String contentform_labellibrary_delete(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {   
//    	Map<String, Object> paraMap = WebUtils.getParametersStartingWith(request, "");
//    	int deleteNum=contentformLabelLibraryService.contentform_labellibrary_delete(paraMap);
//    	if(deleteNum>0){
//    		modelMap.addAttribute("info", "标签删除成功！");
//    		return "redirect:/";
//    	}
//    	modelMap.addAttribute("info", "标签删除失败！");
//		return "redirect:/";
//    }
//    
//    /**
//	 * @功能 		: 	修改标签库表业务处理
//	 * @param 	: 	paraMap
//	 * @return 	:
//	 */
//    @RequestMapping(value = "/")    
//    public String contentform_labellibrary_update(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {   
//    	Map<String, Object> paraMap = WebUtils.getParametersStartingWith(request, "");
//    	int updateNum=contentformLabelLibraryService.contentform_labellibrary_update(paraMap);
//    	if(updateNum>0){
//    		modelMap.addAttribute("info", "标签修改成功！");
//    		return "redirect:/";
//    	}
//    	modelMap.addAttribute("info", "标签修改失败！");
//		return "redirect:/";
//    }
//    
//    /**
//	 * @功能 		: 	查询标签库表业务处理
//	 * @param 	: 	paraMap
//	 * @return 	:
//	 */
//    @RequestMapping(value = "/")
//    public String contentform_labellibrary_findbyid(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) {   
//    	Map<String, Object> paraMap = WebUtils.getParametersStartingWith(request, "");
//    	Map<String, Object> paraMapList=contentformLabelLibraryService.contentform_labellibrary_findbyid(paraMap);
//    	if(null != paraMapList){
//    		modelMap.addAttribute("paraMapList", paraMapList);
//    	}
//    	return "";
//    }
}
